package com.peak.client.controllers;import org.springframework.ai.chat.client.ChatClient;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.beans.factory.annotation.Qualifier;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RequestParam;import org.springframework.web.bind.annotation.RestController;import java.util.Map;/** * @author likai * @date 2024/6/8 17:11 * @email likai9376@163.com * @desc */@RestControllerpublic class OpenAIController {    @Qualifier("openAI")    @Autowired    private ChatClient chatClient;    @GetMapping("/ai")    Map<String, String> completion(@RequestParam(value = "message", defaultValue = "Tell me a joke") String message) {        return Map.of(                "completion",                chatClient.prompt()                          .user(message)                          .call()                          .content());    }}